package com.lzq.his.domain;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class AB {

    @NotNull(message = "数字一不能为空.")
    @Pattern(regexp = "^\\d+$", message = "The value must be a positive integer.")
    private String one;

    @NotNull(message = "数字二不能为空.")
    @Pattern(regexp = "^\\d+$", message = "The value must be a positive integer.")
    private String two;

    public String getOne() {
        return one;
    }

    public void setOne(String one) {
        this.one = one;
    }

    public String getTwo() {
        return two;
    }

    public void setTwo(String two) {
        this.two = two;
    }

    @Override
    public String toString() {
        return "AB{" +
                "one='" + one + '\'' +
                ", two='" + two + '\'' +
                '}';
    }
}
